package com.example.demo.dao;

import com.example.demo.entry.Attachment;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface AttachmentDao {
    /**
     * 1.插入后返回一个id
     * 2.根据id查找
     */
    int add(Attachment attachment);
    Attachment findByid(int id);
}
